
{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="icon" href="{% static 'login/image/222.png' %}">

	<title>修改密码</title>

	<!-- Bootstrap core CSS -->  
	<!-- Bootstrap 核心CSS文件 -->
	<link href="{% static 'login/css/bootstrap.min.css' %}" rel="stylesheet">

	<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
	<link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="signin.css" rel="stylesheet">

	<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
	<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
	<!-- 注意：<script src="../../assets/js/ie-emulation-modes-warning.js"></script> -->

	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
  <style type="text/css">
  body{
  	background: url("{% static 'login/image/121.jpg' %}")  no-repeat;
  }
  .fa{display: inline-block;top: 27px;left: 6px;position: relative;color: #ccc;}
  input[type="text"],input[type="password"]{padding-left:26px;}
  #checkbox{padding-left:21px;}

  .form-signin-heading{
  	text-align: center;
  	color: #337ab7;
  }
  h3{
  	display: inline-block;    
  	margin:120px auto 0;
  }
  .tabbable{
  	margin: 0 auto;
  	background: rgba(255,255,255,0.6);
  }
  .footer{
    background: rgba(255,255,255,0.5);
    position: fixed;
    left: 460px;
    bottom: 6px;
    }
  .footer .foot{
    margin: 0 auto;
    }
</style>
</head>

<body>

	<div class="container">
		<div class="row">
			<div class="col-md-4">

			</div>
			<div class="col-md-4 login-box">
				<h2 class="form-signin-heading">北京网络职业学院考试系统</h2>
				<h3 class="form-signin-heading">修改密码</h3>
				<div class="tabbable" id="tabs-145678">
				<form class="form-signin" action="{% url 'login:alter_pswd_yunsuan' %}" method="post">
					{% csrf_token %}
					<label for="inputName" class="sr-only">账号：</label>
					<input type="text" name="username" id="inputName" class="form-control" placeholder="账号" required autofocus>
					<label for="inputPassword" class="sr-only">密码：</label>
					<input type="password" name="password" id="inputPassword" class="form-control" placeholder="原密码" required>
					<input type="password" id="new_password" name="password" class="form-control" placeholder="新密码" required>
					<input type="password" id="new_password" name="password" class="form-control" placeholder="再次输入密码">
					<div class="checkbox">
						<label>
							<input type="checkbox" value="remember-me"> 记住我
						</label>
						<a href="{% url 'login:alter_pswd' %}">修改密码</a>
						{% if error %}
						<h5 style="color: red;">{{error}}</h5>
						{% endif %}
						{% if success %}
						<h5 style="color: red;">密码修改成功，请返回登录！</h5>
						{% endif %}
					</div>
					<button class="btn btn-lg btn-primary btn-block" type="submit">提交</button>
				</form>
				<a href="{% url 'login:login' %}"><button type="button" class="btn btn-primary btn-lg btn-block">返回登录</button></a>
				</div>
			</div>
			<div class="col-md-4">

			</div>
		</div>
		<footer class="footer">
        <p class="foot">&copy; 2018 北京网络职业学院考试系统Company, Inc.</p>
        </footer>
	</div> <!-- /container -->
	<!-- 引用的样式部分，不属于内容： -->
	<!-- jquery部分： -->
	<script type="text/javascript" src="{% static 'login/js/jquery-3.3.1.min.js' %}"></script>
	<!-- Bootstrap部分： -->
	<script type="text/javascript" src="{% static 'login/js/bootstrap.min.js' %}"></script>
	<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
	<!-- 注意：<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script> -->
</body>
</html>




		<!-- <label for="username">请输入用户名：</label>
		<input type="text" name="username" id="username" placeholder="用户名" /><br />
		<label for="password">请输入密&nbsp&nbsp&nbsp码：</label>
		<input type="password" name="password" id="password" placeholder="密码" /><br />
		请输入新密码：<input type="password" id="new_password" name="password" placeholder="新密码"><br />
		再次输入密码：<input type="password" id="new_password" name="password" placeholder="再次输入密码"><br /> -->
		